package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.CompanyEntity;
import com.fz.us.admin.company.entity.User;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by ZhuChunXiao on 2017/1/12.
 * 公告通知查看明细
 */
@Entity
@Table(name="ec_notice_query")
public class NoticeQuery extends CompanyEntity {

    private static final long serialVersionUID = 5108678280455103618L;
    /**
     * 查看人
     */
    private User user;

    /**
     * 公告通知文档id
     */
    private String keyId;

    @ManyToOne(fetch = FetchType.LAZY)
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }
}
